package com.coocaa.x.app.hall.topic;

import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.HorizontalScrollView;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.coocaa.x.app.hall.HallBaseActivity;
import com.coocaa.x.app.hall.R;
import com.coocaa.x.app.hall.main.TestJson;
import com.coocaa.x.app.hall.parser.ActionParser;
import com.coocaa.x.app.hall.parser.ParserData;
import com.coocaa.x.app.hall.view.widget.CircleProgressView;
import com.coocaa.x.framework.app.CoocaaApplication;
import com.coocaa.x.framework.utils.AsyncTask;
import com.coocaa.x.framework.utils.LogUtils;
import com.coocaa.x.uipackage.BaseView;
import com.coocaa.x.uipackage.widget.SlideFocusView;
import com.facebook.drawee.backends.pipeline.Fresco;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;

/**
 * Created by luwei on 15-6-16.
 */
public class HallTopicActivity extends HallBaseActivity {
    String topicId = "";
    TopicLayout layout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Fresco.initialize(this);
        topicId = getIntent().getStringExtra("start_apptopic");
        layout = new TopicLayout(this);
        layout.refreshLayout(topicId);
        setContentView(layout);
    }

    @Override
    protected Map<String, String> getPageStartParams() {
        HashMap<String,String> map = new HashMap<String,String>();
        map.put("topicId", topicId);
        return map;
    }

    @Override
    protected void onStop() {
        super.onStop();
    }

    @Override
    protected void onPause() {
        super.onPause();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        layout.removeDownload();
    }
}
